home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 12
/
Aminet 12 (1996)(GTI - Schatztruhe)[!][Jun 1996].iso
/
Aminet
/
misc
/
math
/
calc.lha
/
Calc.doc
< prev
Wrap
Text File
|
1996-03-08
|
1KB
|
54 lines
CALC 1.0
========
Written and Copyright ©1992 by Oliver Grimm
Calc is a very simple no frills shell calculator for integer arithmetics.
I use it mainly for quick conversion of decimal, hexadecimal and binary
numbers since the result is given in all these three number formats.
The usage is very simple:
Calc Expression
The expression is evaluated by Calc, and the result is printed to the
shell in the three mentioned number formats.
The expression can consist of the following operators:
+,- addition, substraction
*,/ multiplication, division
^ power
MOD remainder
AND binary and
OR binary or
XOR binary exclusive or
Calc is evaluating the expression from left to right, ie. it doesn't
care for the different priorities of the operators. Therefore, the
command Calc 1+2*3 gives 9,not 7. Also, there are no brackets.
And... that's all.
-----------------------
Anyone finds a bug, or wants some improvement ? Drop me a note.
My contact address is as follows: Oliver Grimm
Steinbecker Str. 69
21244 Buchholz
GERMANY
And my eMail address: grimm@physnet.uni-hamburg.de